#!/bin/sh

ENV_FILE=shell_env.sh 
CUR_PATH=$(cd "$(dirname "$0")"; pwd)
. $CUR_PATH/$ENV_FILE
protocol_array=('0f39' 'd002' 'd005' 'd006' 'd007' 'd008' 'd009' 'd00a' 'a203' 'a204' )
for i in ${protocol_array[@]}
  do
    if [ ! -d $BASE_LOG_PATH/$i ]; then
        mkdir -p $BASE_LOG_PATH/$i
    fi
      . $CUR_PATH/parquet_transformer.sh $FLUME_SOURCE $STAGE_IMPORT"_"$i $STAGE_BACKUP"_"$i $i >> $BASE_LOG_PATH/$i/parquet_transformer_$i"_"`date -d today +\%Y\%m\%d`.log 2>&1
  done
